package pkg.chemdrm;

import java.util.Hashtable;
import java.util.Map;

import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.entity.scene.Scene;

/* We can code up some fancy scene transitions if we want to, later... */
public class SceneHandler {
	private Hashtable<String, ChemScene> 	mScenes;
	private Engine 				mEngine;
	
	SceneHandler(final Engine pEngine)
	{
		mEngine = pEngine;
		mScenes = new Hashtable<String, ChemScene>();
	}
	
	public void addScene(final String pSceneName, final ChemScene pScene)
	{
		mScenes.put(pSceneName, pScene);
	}
	
	public void setScene(final String pSceneName)
	{
		mEngine.setScene(mScenes.get(pSceneName));
		mScenes.get(pSceneName).restoreCamera();
	}
	
}
